//
//  LatestLayerModelManager.m
//  dataGathering
//
//  Created by macmini on 15/1/30.
//  Copyright (c) 2015年 shuili. All rights reserved.
//

#import "LatestLayerModelManager.h"


@implementation LatestLayerModelManager
static LatestLayerModelManager *sharedManager=nil;

LatestLayerListModel *latestLayerModel;

-(id)init
{
    self = [super init];
    if (self) {

    }
    return self;
}

+(LatestLayerModelManager *)sharedInstance{
    static dispatch_once_t once;
    dispatch_once(&once, ^{
        sharedManager=[[LatestLayerModelManager alloc] init];
        
    });
    return sharedManager;
}

- (void)setLatestLayerModel :(LatestLayerListModel*)newLayerModel
{
    latestLayerModel = [newLayerModel copy];
}

- (BOOL)isLaytestLayerModelAvailable
{
    if(latestLayerModel){
        return YES;
    } else {
        return NO;
    }
}

- (LatestLayerListModel*)getLatestLayerModel
{
    if(![self isLaytestLayerModelAvailable]){
        return nil;
    } else {
        return [latestLayerModel copy];
    }
}

- (void)refreshLayersDataOfflineStroingStatus
{
    if(latestLayerModel)
    {
        
    }
}

- (void)getLayersDataOfflineStoringStatus
{
    
}


@end
